package com.lzy.system.fileManage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 附件管理
 * </p>
 *
 * @author lcc
 * @since 2023-12-28
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_file")
@ApiModel(value = "SysFile对象", description = "附件管理")
public class SysFile implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("文件名称")
    @TableField("file_name")
    private String file_name;

    @ApiModelProperty("系统文件名称")
    @TableField("sys_file_name")
    private String sys_file_name;

    @ApiModelProperty("文件路径")
    @TableField("file_path")
    private String file_path;

    @ApiModelProperty("上传时间")
    @TableField("createdate")
    private Date createdate;

    @ApiModelProperty("文件类型")
    @TableField("file_type")
    private String file_type;

    @ApiModelProperty("创建用户")
    @TableField("create_user")
    private Long create_user;

    @ApiModelProperty("文件大小")
    @TableField("file_size")
    private Long file_size;

    @ApiModelProperty("上传来源")
    @TableField("upload_source")
    private String upload_source;
}
